package com.bbznb.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;


public class Movie implements Serializable {
    private Integer id;          // 电影ID
    private String title;     // 电影名称
    private String poster;    // 海报URL
    private Integer duration; // 时长（分钟）
    private Integer amount;
    public Integer getId() {
        return id;
    }

    public Movie() {
    }

    public Movie(Integer id, String title, String poster, Integer duration, String genre, String cinema, LocalDate date, LocalTime time, BigDecimal price, BigDecimal discount, Integer amount) {
        this.amount = amount;
        this.id = id;
        this.title = title;
        this.poster = poster;
        this.duration = duration;
        this.genre = genre;
        this.cinema = cinema;
        this.date = date;
        this.time = time;
        this.price = price;
        this.discount = discount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
    public Integer getAmount() {
        return amount;
    }
    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPoster() {
        return poster;
    }

    public void setPoster(String poster) {
        this.poster = poster;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String getCinema() {
        return cinema;
    }

    public void setCinema(String cinema) {
        this.cinema = cinema;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public LocalTime getTime() {
        return time;
    }

    public void setTime(LocalTime time) {
        this.time = time;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    private String genre;     // 类型
    private String cinema;    // 影院名称
    private LocalDate date;   // 上映日期
    private LocalTime time;   // 上映时间
    private BigDecimal price; // 原价
    private BigDecimal discount; // 折扣金额
}